/* 响应式设计补充样式 */

/* 超小屏幕 (手机) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .product-card {
        margin: 0 10px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* 中等屏幕 (平板) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 大屏幕 (桌面) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 超大屏幕 */
@media (min-width: 1025px) {
    .hero-container {
        gap: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .hero-graphic,
    .service-icon,
    .contact-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 打印样式 */
@media print {

    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section-header h2 {
        color: black;
    }

    .service-card,
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f9fafb;
        --text-light: #d1d5db;
        --bg-color: #111827;
        --bg-light: #1f2937;
        --border-color: #374151;
    }

    .navbar {
        background: rgba(17, 24, 39, 0.95);
    }

    .service-card,
    .product-card,
    .contact-form {
        background: var(--bg-light);
        border-color: var(--border-color);
    }

    .stat-item {
        background: var(--bg-light);
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-graphic {
        animation: none;
    }
}

/* 焦点可见性 */
@media (prefers-reduced-motion: no-preference) {

    .nav-link:focus,
    .btn:focus,
    .product-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}